package edu.neusoft.yiqibike.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import edu.neusoft.yiqibike.common.entity.mysql.Admin;
import edu.neusoft.yiqibike.common.entity.mysql.SystemDictionary;
import edu.neusoft.yiqibike.common.entity.vo.SystemDictionaryVo;

import java.util.List;
import java.util.Map;

/**
 * User：lyc
 * Date：2018-01-09
 * Time：21:43
 * Description：字典服务接口
 */
public interface ISystemDictionaryService extends IService<SystemDictionary> {
    Page<SystemDictionaryVo> getList(Page<SystemDictionary> page);

    void addOrEditDictionary(SystemDictionary systemDictionary);

    List<Map<String,String>> getAllGroups();

    void invertIsEnable(SystemDictionary dictionary, Admin admin);

    void remove(List<String> ids);

    List<SystemDictionary> getDictionaryByGroup(String group);

    SystemDictionary getByCodeAndGroupCode(String department, String departments);

    Page<SystemDictionaryVo> getGroupsByCode(Page page, String id);
}
